package com.zty.xiaomi.server.Mapper;

import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

/**
 * @author Losca
 * @date 2022/2/21 0:04
 */
@Component
public interface OrderGood {
    @Update("update ordergood set status = 3 where orderNo = #{orderNo}")
    boolean receive(String orderNo);

    @Update("update ordergood set status = 0 where orderNo = #{orderNo}")
    boolean cancel(String orderNo);
}
